﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="fileupload.ascx.cs"
    Inherits="Presentation.Controls.fileupload" %>
<div>
    <asp:Label ID="lblTitulo" runat="server" Text="Titulo:" Width="50px"></asp:Label><asp:TextBox
        Width="150px" ID="txtTitulo" runat="server" SkinID="adminFormTextBoxSkin"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="Dynamic" runat="server"
        ErrorMessage="(*) Requerido" ControlToValidate="txtTitulo"
        CssClass="requiredValidator"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblAlt" runat="server" Text="Alt:" Width="50px"></asp:Label><asp:TextBox
        Width="150px" ID="txtAlt" runat="server" SkinID="adminFormTextBoxSkin"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="Dynamic" runat="server"
        ErrorMessage="(*) Requerido" ControlToValidate="txtAlt"
        CssClass="requiredValidator"></asp:RequiredFieldValidator>
    <br />
    <asp:FileUpload ID="fileUpload" runat="server" ForeColor="Silver"/><asp:RegularExpressionValidator
        ID="RegularExpressionValidator1" runat="server" CssClass="requiredValidator"  ControlToValidate="fileUpload" ValidationExpression="(.*?)\.(jpg|jpeg|png|gif)$" Display="Dynamic" ErrorMessage="(*) Solo se permiten archivos gif, jpg, bmp, png"></asp:RegularExpressionValidator>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Display="Dynamic" runat="server"
        ErrorMessage="(*) Requerido" ControlToValidate="fileUpload"
        CssClass="requiredValidator"></asp:RequiredFieldValidator>
</div>
